<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>jsonTest</title>
    <script type="text/javascript">
        <!--        编写一个对象-->
        let user = {
            name: "seon",
            age: 3,
            sex: "male"
        };
        console.log(user);
        var userString = JSON.stringify(user);
        console.log(userString);
        var parse = JSON.parse(userString);
        console.log(parse)
    </script>
</head>
<body>

</body>
</html>